<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Arduino A2DP: A2DPLinearVolumeControl Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Arduino A2DP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_a2_d_p_linear_volume_control-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">A2DPLinearVolumeControl Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>The simplest possible implementation of a VolumeControl.  
 <a href="class_a2_d_p_linear_volume_control.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_a2_d_p_volume_control_8h_source.html">A2DPVolumeControl.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for A2DPLinearVolumeControl:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_a2_d_p_linear_volume_control.png" usemap="#A2DPLinearVolumeControl_map" alt=""/>
  <map id="A2DPLinearVolumeControl_map" name="A2DPLinearVolumeControl_map">
<area href="class_a2_d_p_volume_control.html" title="Abstract class for handling of the volume of the audio data." alt="A2DPVolumeControl" shape="rect" coords="0,0,164,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a784b8d5266fac3d7f359785334de9c88" id="r_a784b8d5266fac3d7f359785334de9c88"><td class="memItemLeft" align="right" valign="top"><a id="a784b8d5266fac3d7f359785334de9c88" name="a784b8d5266fac3d7f359785334de9c88"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>A2DPLinearVolumeControl</b> ()</td></tr>
<tr class="memdesc:a784b8d5266fac3d7f359785334de9c88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor that sets volumeFactorMax to 128 for linear scaling. <br /></td></tr>
<tr class="separator:a784b8d5266fac3d7f359785334de9c88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6af31a3ffaad03ffa06930bbb3d3d285" id="r_a6af31a3ffaad03ffa06930bbb3d3d285"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a2_d_p_volume_control.html#a6af31a3ffaad03ffa06930bbb3d3d285">get_volume_factor</a> ()</td></tr>
<tr class="memdesc:a6af31a3ffaad03ffa06930bbb3d3d285"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current volume factor.  <br /></td></tr>
<tr class="separator:a6af31a3ffaad03ffa06930bbb3d3d285"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5ff3aa2b2b615e7eb01c8a8f164ef60" id="r_ae5ff3aa2b2b615e7eb01c8a8f164ef60"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a2_d_p_volume_control.html#ae5ff3aa2b2b615e7eb01c8a8f164ef60">get_volume_factor_max</a> ()</td></tr>
<tr class="memdesc:ae5ff3aa2b2b615e7eb01c8a8f164ef60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the maximum volume factor value.  <br /></td></tr>
<tr class="separator:ae5ff3aa2b2b615e7eb01c8a8f164ef60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdb9256f6a30b6c716193af7fadeee9c" id="r_abdb9256f6a30b6c716193af7fadeee9c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a2_d_p_volume_control.html#abdb9256f6a30b6c716193af7fadeee9c">set_enabled</a> (bool enabled)</td></tr>
<tr class="memdesc:abdb9256f6a30b6c716193af7fadeee9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables volume control.  <br /></td></tr>
<tr class="separator:abdb9256f6a30b6c716193af7fadeee9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a533745afd59e80e2549c9dfa80e05423" id="r_a533745afd59e80e2549c9dfa80e05423"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a2_d_p_volume_control.html#a533745afd59e80e2549c9dfa80e05423">set_mono_downmix</a> (bool enabled)</td></tr>
<tr class="memdesc:a533745afd59e80e2549c9dfa80e05423"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables mono downmix.  <br /></td></tr>
<tr class="separator:a533745afd59e80e2549c9dfa80e05423"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6eb1add5a68fe554c6705cb9fad25545" id="r_a6eb1add5a68fe554c6705cb9fad25545"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a2_d_p_volume_control.html#a6eb1add5a68fe554c6705cb9fad25545">update_audio_data</a> (Frame *data, uint16_t frameCount)</td></tr>
<tr class="memdesc:a6eb1add5a68fe554c6705cb9fad25545"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates audio data with volume control and optional mono downmix.  <br /></td></tr>
<tr class="separator:a6eb1add5a68fe554c6705cb9fad25545"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f23bd37f10a58fd03cebe5d9b180802" id="r_a8f23bd37f10a58fd03cebe5d9b180802"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a2_d_p_volume_control.html#a8f23bd37f10a58fd03cebe5d9b180802">update_audio_data</a> (uint8_t *data, uint16_t byteCount)</td></tr>
<tr class="memdesc:a8f23bd37f10a58fd03cebe5d9b180802"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates audio data with volume control and optional mono downmix.  <br /></td></tr>
<tr class="separator:a8f23bd37f10a58fd03cebe5d9b180802"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a23700514ed3bb33151ea90033e8dcbea" id="r_a23700514ed3bb33151ea90033e8dcbea"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a2_d_p_volume_control.html#a23700514ed3bb33151ea90033e8dcbea">clip</a> (int32_t value)</td></tr>
<tr class="memdesc:a23700514ed3bb33151ea90033e8dcbea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clips audio sample value to prevent overflow.  <br /></td></tr>
<tr class="separator:a23700514ed3bb33151ea90033e8dcbea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa923e78a96352519ddca28bc957a73e0" id="r_aa923e78a96352519ddca28bc957a73e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a2_d_p_linear_volume_control.html#aa923e78a96352519ddca28bc957a73e0">set_volume</a> (uint8_t volume) override</td></tr>
<tr class="memdesc:aa923e78a96352519ddca28bc957a73e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the volume using direct linear mapping.  <br /></td></tr>
<tr class="separator:aa923e78a96352519ddca28bc957a73e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a7982efce1f1a1ab6c902900f8e0bb696" id="r_a7982efce1f1a1ab6c902900f8e0bb696"><td class="memItemLeft" align="right" valign="top"><a id="a7982efce1f1a1ab6c902900f8e0bb696" name="a7982efce1f1a1ab6c902900f8e0bb696"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_volume_used</b> = false</td></tr>
<tr class="memdesc:a7982efce1f1a1ab6c902900f8e0bb696"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag indicating if volume control is enabled. <br /></td></tr>
<tr class="separator:a7982efce1f1a1ab6c902900f8e0bb696"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b449f76c7c931cf590732a3d73acaea" id="r_a8b449f76c7c931cf590732a3d73acaea"><td class="memItemLeft" align="right" valign="top"><a id="a8b449f76c7c931cf590732a3d73acaea" name="a8b449f76c7c931cf590732a3d73acaea"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mono_downmix</b> = false</td></tr>
<tr class="memdesc:a8b449f76c7c931cf590732a3d73acaea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag indicating if mono downmix is enabled. <br /></td></tr>
<tr class="separator:a8b449f76c7c931cf590732a3d73acaea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc84ddb465e3fed9c0903a9f3e565be8" id="r_adc84ddb465e3fed9c0903a9f3e565be8"><td class="memItemLeft" align="right" valign="top"><a id="adc84ddb465e3fed9c0903a9f3e565be8" name="adc84ddb465e3fed9c0903a9f3e565be8"></a>
int32_t&#160;</td><td class="memItemRight" valign="bottom"><b>volumeFactor</b> = 1</td></tr>
<tr class="memdesc:adc84ddb465e3fed9c0903a9f3e565be8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Current volume factor. <br /></td></tr>
<tr class="separator:adc84ddb465e3fed9c0903a9f3e565be8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8489e6a24ee9c9135ce42b7e4c686546" id="r_a8489e6a24ee9c9135ce42b7e4c686546"><td class="memItemLeft" align="right" valign="top"><a id="a8489e6a24ee9c9135ce42b7e4c686546" name="a8489e6a24ee9c9135ce42b7e4c686546"></a>
int32_t&#160;</td><td class="memItemRight" valign="bottom"><b>volumeFactorClippingLimit</b> = 0xfff</td></tr>
<tr class="memdesc:a8489e6a24ee9c9135ce42b7e4c686546"><td class="mdescLeft">&#160;</td><td class="mdescRight">Volume factor clipping limit (4095) <br /></td></tr>
<tr class="separator:a8489e6a24ee9c9135ce42b7e4c686546"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf01b0f44d8f482ed5119f088958595e" id="r_adf01b0f44d8f482ed5119f088958595e"><td class="memItemLeft" align="right" valign="top"><a id="adf01b0f44d8f482ed5119f088958595e" name="adf01b0f44d8f482ed5119f088958595e"></a>
int32_t&#160;</td><td class="memItemRight" valign="bottom"><b>volumeFactorMax</b> = 0x1000</td></tr>
<tr class="memdesc:adf01b0f44d8f482ed5119f088958595e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum volume factor (4096) <br /></td></tr>
<tr class="separator:adf01b0f44d8f482ed5119f088958595e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The simplest possible implementation of a VolumeControl. </p>
<dl class="section author"><dt>Author</dt><dd>pschatzmann </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Apache License Version 2 </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a23700514ed3bb33151ea90033e8dcbea" name="a23700514ed3bb33151ea90033e8dcbea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23700514ed3bb33151ea90033e8dcbea">&#9670;&#160;</a></span>clip()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int32_t A2DPVolumeControl::clip </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clips audio sample value to prevent overflow. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>Input audio sample value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Clipped value within valid 16-bit range (-32768 to 32767) </dd></dl>

</div>
</div>
<a id="a6af31a3ffaad03ffa06930bbb3d3d285" name="a6af31a3ffaad03ffa06930bbb3d3d285"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6af31a3ffaad03ffa06930bbb3d3d285">&#9670;&#160;</a></span>get_volume_factor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int32_t A2DPVolumeControl::get_volume_factor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the current volume factor. </p>
<dl class="section return"><dt>Returns</dt><dd>Volume factor in the range of 0 to 4096 </dd></dl>

</div>
</div>
<a id="ae5ff3aa2b2b615e7eb01c8a8f164ef60" name="ae5ff3aa2b2b615e7eb01c8a8f164ef60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5ff3aa2b2b615e7eb01c8a8f164ef60">&#9670;&#160;</a></span>get_volume_factor_max()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int32_t A2DPVolumeControl::get_volume_factor_max </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the maximum volume factor value. </p>
<dl class="section return"><dt>Returns</dt><dd>Maximum factor value (4096) </dd></dl>

</div>
</div>
<a id="abdb9256f6a30b6c716193af7fadeee9c" name="abdb9256f6a30b6c716193af7fadeee9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdb9256f6a30b6c716193af7fadeee9c">&#9670;&#160;</a></span>set_enabled()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void A2DPVolumeControl::set_enabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disables volume control. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enabled</td><td>True to enable volume control, false to disable </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a533745afd59e80e2549c9dfa80e05423" name="a533745afd59e80e2549c9dfa80e05423"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a533745afd59e80e2549c9dfa80e05423">&#9670;&#160;</a></span>set_mono_downmix()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void A2DPVolumeControl::set_mono_downmix </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disables mono downmix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enabled</td><td>True to enable mono downmix, false to disable </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa923e78a96352519ddca28bc957a73e0" name="aa923e78a96352519ddca28bc957a73e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa923e78a96352519ddca28bc957a73e0">&#9670;&#160;</a></span>set_volume()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void A2DPLinearVolumeControl::set_volume </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>volume</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the volume using direct linear mapping. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">volume</td><td>Volume level (0-127) - directly used as volume factor </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_a2_d_p_volume_control.html#a4a40e553f8c15a2cecb6f2f71fa0464c">A2DPVolumeControl</a>.</p>

</div>
</div>
<a id="a6eb1add5a68fe554c6705cb9fad25545" name="a6eb1add5a68fe554c6705cb9fad25545"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6eb1add5a68fe554c6705cb9fad25545">&#9670;&#160;</a></span>update_audio_data() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void A2DPVolumeControl::update_audio_data </td>
          <td>(</td>
          <td class="paramtype">Frame *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>frameCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Updates audio data with volume control and optional mono downmix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>Pointer to audio frame data </td></tr>
    <tr><td class="paramname">frameCount</td><td>Number of frames to process </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_a2_d_p_no_volume_control.html#ab7e6d29791af0c5820679170838bc241">A2DPNoVolumeControl</a>.</p>

</div>
</div>
<a id="a8f23bd37f10a58fd03cebe5d9b180802" name="a8f23bd37f10a58fd03cebe5d9b180802"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f23bd37f10a58fd03cebe5d9b180802">&#9670;&#160;</a></span>update_audio_data() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void A2DPVolumeControl::update_audio_data </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>byteCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Updates audio data with volume control and optional mono downmix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>Pointer to raw audio data (uint8_t) </td></tr>
    <tr><td class="paramname">byteCount</td><td>Number of bytes to process </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="_a2_d_p_volume_control_8h_source.html">A2DPVolumeControl.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
